function m2 = lpcvdGetM2(h)
if (size(h,1) == 1 && size(h,2) ~= 1)
    h = h';
end
s = [h(1)-h(end);diff(h)];
m2 = mean((s.^2)*3);